
- Make sure you use the latest EBS-50 firmware (IBGV0122 of higher) / ESL Web Server (3.0.11.xxxx)

- Make sure you have the latest firmware for the SE-290A installed (V0206 or higher)

***** TO RUN ON PC **************

- Import the 'Demo configuration - PC.zip'

- Login: admin / 12345678

- Add an EBS-4x (or use an EBS-50)

- Link an SE-290A to a product in the database


- Run the 'SE290A_BackOfficeSim_CoreApi' using Visual Studio 2022 or higher

- Pressing the trigger fires 2 calls to the 'SE290A_BackOfficeSim_CoreApi' using the event handler
	-> POST -> Reply to button press event
	
	api/%MAC%/%ID%/%EVENT%/%VALUE%/%SEQNR%/%DESCRIPTION%

	-> GET	> Set product description to 

	api/%MAC%/%ID%/%EVENT%/%VALUE%/%SEQNR%/%DESCRIPTION%
	
- The event handler uses a Keep alive with a scheduled event
	-> GET api/KEEP-ALIVE	-> Keeps the response times low

Change: 'https://localhost:44376' in all event handler when you're BackOfficeSim isn't running locally and make the sure fire wall allows access

Make sure that the default API-key in the demo configuration matches the API key in SE290A_BackOfficeSim_CoreApi file Program.cs:

public static string ApiKey = "1884EEAF-50C7-4A54-B678-710AE87DEA21";  // dummy default API key

***** TO BUILD AND RUN ON LINUX **************

- Import the 'Demo configuration - EBS50.zip'

- Login: admin / 12345678

- Add an EBS-4x (or use an EBS-50)

- Link an SE-290A to a product in the database

Build / installation
•	Use Visual studio 2022 or higher to open the ‘SE290A_BackOfficeSim_CoreApi.csproj’ file
•	To publish the project for the EBS-50 use the following publishing configuration:
•	Locate the ‘bin\Release\backofficesim_ebs50’ folder
•		Copy and replace the files from the ‘LinuxArm’ folder to the ‘SE290A_BackOfficeSim’ folder to resolve SQLite issues 
•		Note: don’t update the SQLite NuGet package, because these files were explicitly build ON the EBS-50 from version 1.0.118
•	Open WinSCP and open a SFTP connection with the following connection settings:Host: IP / port:22 / user: root / pass: admin
•	Browse to: /etc/systemd/system
•		Copy file ' SE290A_BackOfficeSim.service' to '/etc/systemd/system'
•		Right click the file Change access rights of ‘SE290A_BackOfficeSim.service' to '0755'
•	Browse to: /home/root
•		Copy folder named ‘SE290A_BackOfficeSim’ to '/home/root'
•		In the folder 'SE290A_BackOfficeSim', right click the file ‘SE290A_BackOfficeSim_CoreApi' and change access rights to '0755'
•		In the folder 'SE290A_BackOfficeSim', right click the file ‘ebs-50.pfx' and change access rights to '0600'
•	To enable and start the service type:
•		systemctl enable SE290A_BackOfficeSim
•		systemctl start SE290A_BackOfficeSim

Check that the application is running at: https://ebs50.local:8794

 





